package com.zzy.web.controller.order;

import com.zzy.common.core.domain.AjaxResult;
import com.zzy.system.service.IGuanmaiBaseInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 登录验证
 * 
 * @author zzy
 */
@Api(value = "BaseInfo", tags = {"基础信息"}, hidden = false)
@RestController
public class GuanmaiBaseInfoController
{
    @Autowired
    private IGuanmaiBaseInfoService iGuanmaiBaseInfoService;

    @GetMapping("/getGuanmaiSku")
    @ApiOperation("获取观麦商品信息")
    public AjaxResult getGuanmaiSku() throws Exception {
        AjaxResult ajax = AjaxResult.success();
        iGuanmaiBaseInfoService.getGuanmaiSku();
        return ajax;
    }

    @GetMapping("/getGuanmaiSupplier")
    @ApiOperation("获取观麦供应商信息")
    public AjaxResult getGuanmaiSupplier() throws Exception {
        AjaxResult ajax = AjaxResult.success();
        iGuanmaiBaseInfoService.getGuanmaiSupplier();
        return ajax;
    }

    @GetMapping("/getGuanmaiCustomer")
    @ApiOperation("获取观麦商户信息")
    public AjaxResult getGuanmaiCustomer() throws Exception {
        AjaxResult ajax = AjaxResult.success();
        iGuanmaiBaseInfoService.getGuanmaiCustomer();
        return ajax;
    }

    @GetMapping("/getGuanmaiSpu")
    @ApiOperation("获取观麦SPU商品信息")
    public AjaxResult getGuanmaiSpu() throws Exception {
        AjaxResult ajax = AjaxResult.success();
        iGuanmaiBaseInfoService.getGuanmaiSpu();
        return ajax;
    }

}
